package com.order.repository;

import com.order.entity.OrderEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface OrderRepository extends JpaRepository<OrderEntity, Long> {
    Optional<OrderEntity> findByNameOrCommodityId(String aa, long l);

    OrderEntity findByName(String aa);

    Optional<OrderEntity> findByOrderId(String orderId);
}
